package com.roc.provider;

import com.roc.common.dto.User;
import com.roc.common.service.UserService;
import com.roc.demo.registry.LocalRegistry;
import com.roc.demo.service.HttpService;
import com.roc.demo.service.VertxHttpServer;
import com.roc.provider.service.UserServiceImpl;

/**
 * 简易服务提供者示例
 */
public class EasyProviderExample {

    public static void main(String[] args) {
        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);
        //启动web服务
        HttpService httpService = new VertxHttpServer();
        httpService.doStart(8080);
    }
}
